package com.cgwx.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.sql.Timestamp;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Getter
@Setter
@TableName("fs_type_entity_id")
@ApiModel(value="TypeEntityId对象")
public class TypeEntityId implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private String id;

    private String fileOuterType;

    private String fileInnerType;

    private String type;

    private String entityId;

    private String deptId;

    private String deptName;

    private String path;

    private String level;

    private String signType;

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Timestamp gmtCreated;

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Timestamp gmtModified;

    @Override
    public String toString() {
        return "TypeEntityId{" +
                "id='" + id + '\'' +
                ", fileOuterType='" + fileOuterType + '\'' +
                ", fileInnerType='" + fileInnerType + '\'' +
                ", type='" + type + '\'' +
                ", entityId='" + entityId + '\'' +
                ", deptName='" + deptId + '\'' +
                ", deptName='" + deptName + '\'' +
                ", path='" + path + '\'' +
                ", level='" + level + '\'' +
                ", signType='" + signType + '\'' +
                ", gmtCreated=" + gmtCreated +
                ", gmtModified=" + gmtModified +
                '}';
    }
}
